package com.example.his.api.db.dao;

import com.example.his.api.db.pojo.UserEntiy;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * @author myname
 * @description 针对表【tb_user(用户表)】的数据库操作Mapper
 * @createDate 2024-06-03 23:28:12
 * @Entity generator.domain.UserEntiy
 */
public interface UserDao {
  public Set <String> searchUserPermissions(int userId);
  
  public Integer login(Map param);
  
  public String searchUsernameById(int userId);
  
  public int updatePassword(Map param);
  
  public ArrayList <HashMap> searchByPage(Map param);
  
  public long searchCount(Map param);
  
  public int insert(UserEntiy user);
  
  public HashMap searchById(int userId);
  
  public int update(Map param);
  
  public int deleteByIds(Integer[] ids);
  
  public int dismiss(int userId);
  
  //  查询当前医生的摘要信息
  public HashMap searchDoctorById(int id);
  
  // 根据部门id查找用户
  public ArrayList <HashMap> searchByDeptId(Map param);
  
  //  部门用户总数
  public long searchCountByDeptId(Map param);
  
}




